﻿Imports System.Text.RegularExpressions

Public Class FormPreview

    Public MasqueRecherche As String

    Public Sub AppliquerMarqueurs()
        For Each oItem As ListViewItem In Form1.ListViewMarqueurs.CheckedItems
            Dim oMasque As ClassMarqueur = oItem.Tag
            oMasque.Marquer(Me.RichTextBox1)
        Next
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.DialogResult = Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        My.Computer.Clipboard.Clear()
        My.Computer.Clipboard.SetText(Me.RichTextBox1.Text)
    End Sub
End Class